package com.ifreshwing.view.CheckedTextView;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;
import android.view.Gravity;

import com.ifreshwing.userpark.R;

/**
 * Created by lz on 2017/5/2.
 */

public class SelectTextView  extends AppCompatTextView{
    public int i = 0;

    public SelectTextView(Context context) {
        super(context);
        initAttr();
    }

    public SelectTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initAttr();
    }

    public SelectTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initAttr();
    }

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    void initAttr() {
        setBackground(getResources().getDrawable(R.color.colorWhite));
        setTextColor(Color.GRAY);
        setTextSize(16);
//            setBackground(getResources().getDrawable(R.drawable.liangdian_background_selector));
        setGravity(Gravity.LEFT);
        setSingleLine(false);
    }


    public int GetCheckStatus() {
        return i;
    }
}
